package cc.wanforme.st.server.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author wanne
 * @since 2022-03-02
 */
@ApiModel(value = "Permission对象", description = "")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("权限代码")
    private String code;

    @ApiModelProperty("权限说明")
    private String description;
    
    @ApiModelProperty("父级权限id")
    private Long pid;

    private LocalDateTime createTime;

    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Long getPid() {
		return pid;
	}
    public void setPid(Long pid) {
		this.pid = pid;
	}

    @Override
    public String toString() {
        return "Permission{" +
            "id=" + id +
            ", code=" + code +
            ", description=" + description +
            ", pid=" + pid +
            ", createTime=" + createTime +
        "}";
    }
}
